/*
 * BarrierInfoPanel.hpp
 *
 *  Created on: 09-01-2011
 *      Author: Przemek
 */

#pragma once

#include "SingleElementInfoPanel.hpp"
#include "world/Barrier.hpp"
#include "gui/Label.hpp"

/*
 * Panel which contains info about a barrier.
 */
class BarrierInfoPanel: public SingleElementInfoPanel
{
	private:
		const Barrier* selected;

	public:
		BarrierInfoPanel(const Barrier* selected);
		std::string getSelectionName() const;

	protected:
		const Barrier* getSelected() const;
		void updateFromSelection();
};

